﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="EZCRS.HCMS.Web.manage.carduser.cardnumb_add" Codebehind="cardnumb_add.aspx.cs" %>
<%@ Register Src="../usercontrol/titlepage.ascx" TagName="titlepage" TagPrefix="uc2" %>
<%@ Register assembly="Book38.Net.CustomControl" namespace="Book38.Net.CustomControl" tagprefix="cc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
	<script language="javascript">
	function shows(str)
	{
	  obj1=$F("SingleAdd");
	  obj2=$F("CreateMult");
	  obj3=$F("AddMult");
	  switch(str)
	  {
	    case 2:
		  obj1.style.display="none";
		  obj3.style.display="none";
		  obj2.style.display="";
		break;
		 
		case 3:
		obj1.style.display="none";
		  obj3.style.display="";
		  obj2.style.display="none";
		break;
		default:
		obj1.style.display="";
		  obj3.style.display="none";
		  obj2.style.display="none";
		break;
	  }
	}
	function checkfile()
	{
	  filename=$F("file").value;
	  if(true)
	  return true;
	  else
	  return false;
	}
	</script>
</head>
<body>

    <form id="formData" runat="server">
    <uc2:titlepage id="Titlepage1" runat="server" inittitle="<%$ Resources:Site, LabCardNumbAdd %>"></uc2:titlepage>
    
        <table style="width: 100%;" class="main-table" cellspacing="1">
           
			<tr class="line-odd">
                <td colspan="2" align="right">&nbsp; </td>
            </tr>
            
			<tr>
              <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" id="SingleAdd">
                  <tr>
                    <td width="40%" style="height: 13px">&nbsp;</td>
                    <td width="60%" align="center" style="height: 13px"><div align="center">
                      <table width="300" border="0" align="right" cellpadding="0" cellspacing="0">
                        <tr  class="line-odd">
                          <td><div align="center"><a href="javascript:shows(1);" class="line-odd"><asp:Label runat="server" ID="LabCardNumbSingleAdd" Text="<%$ Resources:Site, LabCardNumbSingleAdd %>"></asp:Label></a></div></td>
                          <td class="title1"><div align="center"><a href="javascript:shows(2);" class="title1"><asp:Label runat="server" ID="LabCardNumbBatchGen" Text="<%$ Resources:Site, LabCardNumbBatchGen %>"></asp:Label></a></div></td>
                          <td class="title1"><div align="center"><a href="javascript:shows(3);" class="title1"><asp:Label runat="server" ID="LabCardNumbBatchAdd" Text="<%$ Resources:Site, LabCardNumbBatchAdd %>"></asp:Label></a></div></td>
                        </tr>
                      </table>
                    </div></td>
                  </tr>
                  <tr  class="line-even">
                    <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="18%" align="right" style="height: 26px"><asp:Label runat="server" ID="LabCardNumbCardType2" Text="<%$ Resources:Site, LabCardNumbCardType %>"></asp:Label>：</td>
                        <td width="82%" style="height: 26px">&nbsp;
                            <asp:DropDownList ID="txt_cardtype2" runat="server" Width="180px" CssClass="text-line"> </asp:DropDownList></td>
                      </tr>
                      <tr>
                        <td width="18%" align="right" style="height: 26px"><asp:Label runat="server" ID="LabCardNumbCardNumb" Text="<%$ Resources:Site, LabCardNumbCardNumb %>"></asp:Label>：</td>
                        <td width="82%" style="height: 26px">&nbsp;
                            <cc2:WebTextBox ID="txt_cardnumber" runat="server" CssClass="text-line" Width="200px"></cc2:WebTextBox></td>
                      </tr>
                      <tr>
                        <td align="right"><asp:Label runat="server" ID="LabCardNumbCardPassword" Text="<%$ Resources:Site, LabCardNumbCardPassword %>"></asp:Label>：</td>
                        <td>&nbsp;
                            <cc2:WebTextBox ID="txt_cardpassword" runat="server" CssClass="text-line" Width="61px"></cc2:WebTextBox></td>
                      </tr>
                      <tr>
                        <td align="right">&nbsp;</td>
                        <td><asp:Button ID="BtnSave" runat="server" CssClass="bttn" Text="<%$ Resources:Site, ButtonSave %>" OnClick="BtnSave_Click" /></td>
                      </tr>
                      <tr>
                        <td align="right">&nbsp;</td>
                        <td><asp:Label runat="server" ID="LabCardNumbNote1" Text="<%$ Resources:Site, LabCardNumbNote1 %>"></asp:Label></td>
                      </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td align="center">&nbsp;</td>
                    <td align="center">&nbsp;</td>
                  </tr>
                </table>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" id="CreateMult"  style="display:none">
                  <tr>
                    <td width="40%" style="height: 13px">&nbsp;</td>
                    <td width="60%" align="center" style="height: 13px"><div align="center">
                      <table width="300" border="0" align="right" cellpadding="0" cellspacing="0">
                        <tr  class="line-odd">
                          <td class="title1"><div align="center"><a href="javascript:shows(1);" class="title1"><asp:Label runat="server" ID="LabCardNumbSingleAdd2" Text="<%$ Resources:Site, LabCardNumbSingleAdd %>"></asp:Label></a></div></td>
                          <td><div align="center"><a href="javascript:shows(2);"><asp:Label runat="server" ID="LabCardNumbBatchGen2" Text="<%$ Resources:Site, LabCardNumbBatchGen %>"></asp:Label></a></div></td>
                          <td class="title1"><div align="center"><a href="javascript:shows(3);" class="title1"><asp:Label runat="server" ID="LabCardNumbBatchAdd2" Text="<%$ Resources:Site, LabCardNumbBatchAdd %>"></asp:Label></a></div></td>
                        </tr>
                      </table>
                    </div></td>
                  </tr>
                  <tr  class="line-even">
                    <td colspan="2"><table width="650" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="15%"><asp:Label runat="server" ID="LabCardNumbCardType" Text="<%$ Resources:Site, LabCardNumbCardType %>"></asp:Label>：</td>
                        <td width="30%">&nbsp;
                            <asp:DropDownList ID="txt_cardtype" runat="server" Width="180px" CssClass="text-line"> </asp:DropDownList></td>
                        <td colspan="4"></td>
                      </tr>
                      <tr>
                        <td width="15%"><asp:Label runat="server" ID="LabCardNumbTemplate" Text="<%$ Resources:Site, LabCardNumbTemplate %>"></asp:Label>：</td>
                        <td width="30%">&nbsp;
                            <cc2:WebTextBox ID="txt_template" runat="server" CssClass="text-line">2000$</cc2:WebTextBox></td>
                        <td colspan="4"><asp:Label runat="server" ID="LabCardNumbNote2" Text="<%$ Resources:Site, LabCardNumbNote2 %>"></asp:Label></td>
                      </tr>
                      <tr>
                        <td><asp:Label runat="server" ID="LabCardNumbStartNum" Text="<%$ Resources:Site, LabCardNumbStartNum %>"></asp:Label>：</td>
                        <td>&nbsp;
                            <cc2:WebTextBox ID="txt_startnum" runat="server" CssClass="text-line" Width="65px" onkeypress="return event.keyCode>=48&&event.keyCode<=57" onPaste="return false" onDrop="return false">1</cc2:WebTextBox></td>
                        <td width="13%"><asp:Label runat="server" ID="LabCardNumbEndNum" Text="<%$ Resources:Site, LabCardNumbEndNum %>"></asp:Label>：</td>
                        <td style="width: 15%">&nbsp;
                            <cc2:WebTextBox ID="txt_endnum" runat="server" CssClass="text-line" Width="65px" onkeypress="return event.keyCode>=48&&event.keyCode<=57" onPaste="return false" onDrop="return false">9999</cc2:WebTextBox></td>
                        <td width="8%"><asp:Label runat="server" ID="LabCardNumbMedian" Text="<%$ Resources:Site, LabCardNumbMedian %>"></asp:Label>：</td>
                        <td width="11%">&nbsp;
                            <asp:DropDownList ID="txt_median" runat="server">
                              <asp:ListItem Value="1">1位</asp:ListItem>
                              <asp:ListItem Value="2">2位</asp:ListItem>
                              <asp:ListItem Value="3">3位</asp:ListItem>
                              <asp:ListItem Value="4">4位</asp:ListItem>
                              <asp:ListItem Value="5">5位</asp:ListItem>
                              <asp:ListItem Value="6">6位</asp:ListItem>
                              <asp:ListItem Value="7">7位</asp:ListItem>
                              <asp:ListItem Value="8">8位</asp:ListItem>
                              <asp:ListItem Value="9">9位</asp:ListItem>
                          </asp:DropDownList></td>
                      </tr>
                      <tr>
                        <td>&nbsp;</td>
                        <td><asp:Button ID="BtnSave1" runat="server" CssClass="bttn" Text="<%$ Resources:Site, ButtonSave %>" OnClick="BtnSave1_Click" /></td>
                        <td>&nbsp;</td>
                        <td style="width: 15%">&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td>&nbsp;</td>
                        <td colspan="5"><asp:Label runat="server" ID="LabCardNumbNote3" Text="<%$ Resources:Site, LabCardNumbNote3 %>"></asp:Label><br/>
                                        <asp:Label runat="server" ID="LabCardNumbNote4" Text="<%$ Resources:Site, LabCardNumbNote4 %>"></asp:Label></td>
                      </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td align="center">&nbsp;</td>
                    <td align="center">&nbsp;</td>
                  </tr>
                </table>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" id="AddMult" style="display:none;">
                  <tr>
                    <td width="40%" style="height: 13px">&nbsp;</td>
                    <td width="60%" align="center" style="height: 13px"><div align="center">
                      <table width="300" border="0" align="right" cellpadding="0" cellspacing="0">
                        <tr  class="line-odd">
                          <td class="title1"><div align="center"><a href="javascript:shows(1);" class="title1"><asp:Label runat="server" ID="LabCardNumbSingleAdd3" Text="<%$ Resources:Site, LabCardNumbSingleAdd %>"></asp:Label></a></div></td>
                          <td class="title1"><div align="center"><a href="javascript:shows(2);" class="title1"><asp:Label runat="server" ID="LabCardNumbBatchGen3" Text="<%$ Resources:Site, LabCardNumbBatchGen %>"></asp:Label></a></div></td>
                          <td><div align="center"><a href="javascript:shows(3);"><asp:Label runat="server" ID="LabCardNumbBatchAdd3" Text="<%$ Resources:Site, LabCardNumbBatchAdd %>"></asp:Label></a></div></td>
                        </tr>
                      </table>
                    </div></td>
                  </tr>
                  <tr  class="line-even">
                    <td colspan="2"><table width="400" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="21%"><asp:Label runat="server" ID="LabCardNumbCardType1" Text="<%$ Resources:Site, LabCardNumbCardType %>"></asp:Label>：</td>
                          <td width="79%">&nbsp;
                              <asp:DropDownList ID="txt_cardtype1" runat="server" Width="180px" CssClass="text-line"> </asp:DropDownList></td>
                        </tr>
                        <tr>
                          <td width="21%"><asp:Label runat="server" ID="LabCardNumbFile" Text="<%$ Resources:Site, LabCardNumbFile %>"></asp:Label>：</td>
                          <td width="79%">&nbsp;
                              <input name="file" type="file" id="file" class="text-line" runat="server" /></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                          <td>&nbsp;
                              <asp:Button ID="BtnSave2" runat="server" CssClass="bttn" Text="<%$ Resources:Site, ButtonSave %>" OnClick="BtnSave2_Click" EnableTheming="False" OnClientClick="javascript:return checkfile();"/></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                          <td>&nbsp;<asp:Label runat="server" ID="LabCardNumbNote5" Text="<%$ Resources:Site, LabCardNumbNote5 %>"></asp:Label> <a href="../../download/testtxt.rar" target="_blank"><img src="../../image/document.gif" border="0"/></a> <a href="../../download/testxsl.rar" target="_blank"><img src="../../image/excel.gif" border="0"/></a></td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td align="center">&nbsp;</td>
                    <td align="center">&nbsp;</td>
                  </tr>
                </table></td>
            </tr>
           <tr class="line-odd"><td>&nbsp;</td>
           </tr>
           <tr class="line-even">
                <td colspan="2" align="center">                    </td>
           </tr> 
        </table>
      
    
    </form>
</body>
</html>

